package com.yun.zf.admin.controller;

import com.yun.zf.common.app.domain.ZfCity;
import com.yun.zf.common.app.dto.home.OpenCityListDto;
import com.yun.zf.common.vo.Response;
import com.yun.zf.system.service.ZfCityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/city")
@Api(tags = "城市管理")
public class ZfCityController {
    @Autowired
    private ZfCityService cityService;

    @PostMapping("/openCity")
    @ApiOperation(value = "获取开通省市列表")
    public Response openCity(){
    return  Response.success(cityService.managerOpenCity());
    }


    @PostMapping("/getOpenCity")
    @ApiOperation(value = "获取开通城市列表")
    public Response getOpenCity(){
        return  Response.success(cityService.getOpenCity());
    }

}
